package com.chhh.cranelease.controller.financialmanagement;

import com.chhh.cranelease.entity.FinaceOut;
import com.chhh.cranelease.service.FinancialManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("finace/")
public class FinaceOutController {

    @Autowired
    private FinancialManagementService financialManagementService;

    @RequestMapping("finaceout")
    public List<FinaceOut> finaceOut(){
        return financialManagementService.finceOut();
    }
}
